//
//  JPAES.h
//  xychain_DM_iOS
//
//  Created by Jpwang on 2018/5/24.
//  Copyright © 2018年 Jpwang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface JPAES : NSObject

+ (NSData *)random128BitAESKey;

+ (NSString *)AES128EncryptWithPlainText:(NSString *)plain pwdString:(NSString *)password;

+ (NSString *)AES128EncryptWithPlainText:(NSString *)plain pwdData:(NSData *)data;

+ (NSString *)AES128DecryptWithCiphertext:(NSString *)ciphertexts pwdString:(NSString *)password;

+ (NSString *)AES128DecryptWithCiphertext:(NSString *)ciphertexts pwdData:(NSData *)data;

@end
